using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Configuration;

namespace Beetle;

public class ServerNode : ConfigurationElement
{
	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	internal const string a = "host";

	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	internal const string b = "port";

	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	internal const string c = "name";

	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	internal const string d = "detectTime";

	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	internal const string e = "maxConnections";

	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	internal const string f = "group";

	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	internal const string g = "timeOut";

	[ConfigurationProperty("host", IsRequired = true, IsKey = false, IsDefaultCollection = false)]
	[Description("The Host.")]
	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	public virtual string Host
	{
		get
		{
			return (string)base["host"];
		}
		set
		{
			base["host"] = value;
		}
	}

	[ConfigurationProperty("port", IsRequired = true, IsKey = false, IsDefaultCollection = false)]
	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	[Description("The Port.")]
	public virtual int Port
	{
		get
		{
			return (int)base["port"];
		}
		set
		{
			base["port"] = value;
		}
	}

	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	[ConfigurationProperty("name", IsRequired = true, IsKey = true, IsDefaultCollection = false)]
	[Description("The Name.")]
	public virtual string Name
	{
		get
		{
			return (string)base["name"];
		}
		set
		{
			base["name"] = value;
		}
	}

	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	[ConfigurationProperty("detectTime", IsRequired = false, IsKey = false, IsDefaultCollection = false, DefaultValue = 10)]
	[Description("The DetectTime.")]
	public virtual int DetectTime
	{
		get
		{
			return (int)base["detectTime"];
		}
		set
		{
			base["detectTime"] = value;
		}
	}

	[ConfigurationProperty("maxConnections", IsRequired = false, IsKey = false, IsDefaultCollection = false, DefaultValue = 20)]
	[Description("The MaxConnections.")]
	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	public virtual int MaxConnections
	{
		get
		{
			return (int)base["maxConnections"];
		}
		set
		{
			base["maxConnections"] = value;
		}
	}

	[ConfigurationProperty("group", IsRequired = false, IsKey = false, IsDefaultCollection = false)]
	[Description("The Group.")]
	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	public virtual string Group
	{
		get
		{
			return (string)base["group"];
		}
		set
		{
			base["group"] = value;
		}
	}

	[Description("The TimeOut.")]
	[ConfigurationProperty("timeOut", IsRequired = false, IsKey = false, IsDefaultCollection = false, DefaultValue = 30)]
	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	public virtual int TimeOut
	{
		get
		{
			return (int)base["timeOut"];
		}
		set
		{
			base["timeOut"] = value;
		}
	}

	[GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
	public override bool IsReadOnly()
	{
		return false;
	}
}
